<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<link href="assets/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="assets/app/application.css" rel="stylesheet" type="text/css">
</head>
<body>
	<%@ include file="index_head.jsp" %>
<div class="container">
	<div id="login_form">
        <form class="form-horizontal" method="post" action="login.do?m=auth">
            <fieldset>
                <legend>登录</legend>
                <!-- 范围名称可以省略[requestScope].account -->
                 <div class="control-group ${(empty account)?'':'error'}">
                     <label class="control-label" for="inputEmail">账号</label>
		        	 <div class="controls">
		          		<input name="account" class="invalid" type="email" id="inputEmail" placeholder="账号Email" required>
		          		<!-- el表达式为空则什么也不输出，不为空则输出其值 -->
		          		<span class="help-inline">${account}</span>
		        	</div>
                </div>
                
                <div class="control-group">
                    <label class="control-label" for="inputPassword">请设置密码</label>
                    <div class="controls">
                        <input name="password" type="password" id="inputPassword" placeholder="请设置密码" required>
                        <!-- 不必要了，错误信息只返回账号就行，增加安全性
                        	<span class="help-inline"><%=request.getAttribute("password")==null? "" :request.getAttribute("password") %></span>
                        -->
                    </div>
                </div>
                
                <div class="form-actions">
                    <button type="submit" class="btn btn-primary">登录</button>
                    <a href="regist.do?m=showRegistForm" class="btn">新用户注册</a>
                    <a href="home.do">回到首页</a>
                    <a href="#">忘记密码</a>
    			</div>
            </fieldset>
        </form>
    </div>
</div>
	<%@ include file="index_footer.jsp" %>
<script language="javascript" src="assets/bootstrap/js/jquery-1.9.1.js"></script> 
<script language="javascript" src="assets/bootstrap/js/bootstrap.js"></script>
</body>
</html>
